package com.example.soa2.service;

import com.example.soa2.common.CommonResponse;
import com.example.soa2.entity.Record;

import java.util.List;

public interface RecordService {
    CommonResponse<Record> getRecordById(int id);
    CommonResponse<List<Record>> getRecords();
    CommonResponse<List<Record>> getRecordsByPersonId(int  personid);
    CommonResponse<List<Record>> getRecordsByThingId(int  thingid);
    CommonResponse<String> postRecords(Record record);
    CommonResponse<String> deleteById(int id);
    CommonResponse<String> deleteByIds(List<Integer> ids);

    CommonResponse<String> updateRecord(int id, Record updatedRecord);
}
